<template>
	<view class="main">
		<u-navbar
		title=" " 
		:is-back="false"
		title-size="34"
		:border-bottom="false"
		:background="background">
			<view class="header">
				<u-icon name="arrow-left" size="28" @tap="black"></u-icon>
				<view class="title">签约</view>
				<view class="ritbtn" @tap="toPage('/pages/SignUp/jobDetail')">新增</view>
			</view>
		</u-navbar>
		<view class="content">
			<view class="item">
				<view class="top">
					<view class="title u-line-1">中国城市公共交通协会</view>
					<view class="time">2020.06 - 至今</view>
				</view>
				<view class="cont">
					1.负责所有的UI界面设计
					2. 负责官网/微信公众号配图设计
				</view>
				<view class="tags">
					<text>排版设计</text>
					<text>UI界面设计</text>
				</view>
			</view>
			
		</view>
		<view class="no-data">
			<image src="" mode=""></image>
			<button type="default" @tap="toPage('/pages/SignUp/jobDetail')">添加工作经历</button>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				background: {
					backgroundColor:"#4A90E2"
				},
				show:true,//是否显示完善简历弹窗
				jobWayShow:false,//是否展示职位要求弹窗
				timeShow:false,//是否展示接单时间弹窗
				label_style:{
					fontSize: '28rpx',
					color: '#333333',
					lineHeight: '40px'
				},
				
			}
		},
		onLoad() {
			
		},
		onShow() {
			
		},
		onReady() {
			
		},
		onPullDownRefresh() {
		    console.log('refresh');
		    setTimeout(function () {
		        uni.stopPullDownRefresh();
		    }, 1000);
		},
		methods: {
			//返回
			black(){
				uni.navigateBack()
			},
			toPage(url,islogin=false){
				this.more_show = false
				if(islogin){
					uni.navigateTo({
					    url: '/pages/Login/index'
					});
					return
				}
				uni.navigateTo({
				    url: url
				});
			},
			
		}
	}
</script>

<style lang="scss" scoped>
	.main{
		min-height: 100vh;
		padding:0 30rpx;
		background-color: #f9f9f9;
		.header{
			padding: 0 30rpx;
			flex: 1;
			display: flex;
			align-items: center;
			justify-content: space-between;
			color: #FFFFFF;
			font-weight: 400;
			color: #FFFFFF;
			line-height: 34rpx;
			.title{
				font-size: 34rpx;
			}
			.ritbtn{
				font-size: 28rpx;
				position: relative;
				z-index: 999999;
			}
		}
		.content{
			.item{
				padding: 26rpx 20rpx 20rpx 20rpx;
				background: #FFFFFF;
				border-radius: 8rpx;
				margin-top: 30rpx;
				.top{
					display: flex;
					align-items:center;
					justify-content: space-between;
					.title{
						flex: 4;
						font-size: 26rpx;
						font-weight: bold;
						color: #333333;
						line-height: 34rpx;
					}
					.time{
						flex: 2;
						font-size: 22rpx;
						color: #888888;
						line-height: 32rpx;
						text-align: right;
					}
				}
				.cont{
					margin-top: 16rpx;
					font-size: 24rpx;
					color: #888888;
					line-height: 32rpx;
				}
				.tags{
					margin-top: 8rpx;
					text{
						display: inline-block;
						padding: 5rpx 10rpx;
						background: #F9F9F9;
						border-radius: 8rpx;
						margin:12rpx 12rpx 0rpx 0;
						font-size: 24rpx;
						font-weight: 400;
						color: #333333;
						line-height: 34rpx;
					}
				}
			}
			
			
		}
		.no-data{
			text-align: center;
			font-size: 0;
			position: absolute;
			left: calc(50% - 124rpx);
			top:35%;
			image{
				width: 225rpx;
				height: 225rpx;
				background: #C5CAD2;
			}
			button{
				width: 249rpx;
				height: 83rpx;
				background: #4A90E2;
				border-radius: 42rpx;
				font-size: 28rpx;
				font-weight: 400;
				color: #FFFFFF;
				line-height: 83rpx;
				margin-top: 80rpx;
				&::after{
					border: 0;
				}
			}
		}
	}
</style>
